package com.wzcl.app.model.vo;

import com.wzcl.app.dao.model.CourseMaterial;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = false)
@Data
public class CourseMaterialVo extends BaseVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "课程ID")
    private Integer courseId;

    @ApiModelProperty(name = "物品Id")
    private Integer materialId;

    @ApiModelProperty(name = "物品名字")
    private String name;

    @ApiModelProperty(value = "资料描述")
    private String description;

    private CourseMaterialVo() {
    }

    public static CourseMaterialVo create(CourseMaterial courseMaterial){
        CourseMaterialVo courseMaterialVo = new CourseMaterialVo();
        BeanUtils.copyProperties(courseMaterial,courseMaterialVo);
        courseMaterialVo.translationValueStr();
        return courseMaterialVo;
    }

    @Override
    public void translationValueStr() {

    }

    @Override
    public void processResources() {

    }
}
